<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>小狗</title>
    <style>
        body {
            perspective: 1000px;
        }

        .box {
            position: relative;
            width: 300px;
            height: 200px;
            margin: 200px auto;
            transform-style: preserve-3d;
            animation: move 10s linear infinite;
            background-image: url(./img/pig.jpg);

        }

        .box div {
            height: 100%;
            width: 100%;
            position: absolute;
            left: 0;
            right: 0;
            background-image: url(./img/dog.jpg);

        }
        @keyframes move{
            0%{
                transform: rotateY(0);
            }
            100%{
                transform: rotateY(360deg);
            }
        }

        .box div:nth-child(1) {
            transform: translateZ(400px);
        }

        .box div:nth-child(2) {
            transform: rotateY(60deg) translateZ(400px);
        }


        .box div:nth-child(3) {
            transform: rotateY(120deg) translateZ(400px);
        }

        .box div:nth-child(4) {
            transform: rotateY(180deg) translateZ(400px);
        }

        .box div:nth-child(5) {
            transform: rotateY(240deg) translateZ(400px);
        }

        .box div:nth-child(6) {
            transform: rotateY(300deg) translateZ(400px);
        }
    </style>
</head>

<body>
    <div class="box">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
</body>

</html>